<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
    <title>Document</title>
</head>

<body>
<div id="app">
    <input type="button" value="获取后端数据" @click="login">
    <h5>{{message}}</h5>
</div>
<script>
    var app = new Vue({
        el: "#app",
        data: {
            message: "获取数据"
        },
        methods: {
            login: function() {
                var that = this
                axios.get("https://sug.so.360.cn/suggest",{
                    params:{
                        word:'a'
                    }
                })
                    .then(function(response) {
                        console.log(response)

                    })

            }
        }

    })
</script>
</body>

</html>
</body>
</html>
